/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Clases2;

/**
 *
 * @author luis
 */
public class Cliente {
    float dinero;
    String nombre;
    Cliente(String nombre){
        this.nombre = nombre;
    }

    /**
     *
     * @param num
     * @param banc
     */
    public void ingresar(float num, Banco banc){
        dinero+=num;
        banc.total+=num;
    }

    /**
     *
     * @param num
     * @param banc
     */
    public void retirar(float num, Banco banc){
        dinero-=num;
        banc.total-=num;
    }
    
}
